package com.pikaqiu.warehouse.domain.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 *
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class Materials extends BaseEntity implements Serializable {
    /**
     * 物料ID
     */
    private Integer id;

    private Integer companyId;

    /**
     * 物料编码
     */
    private String code;

    /**
     * 物料名称
     */
    private String name;

    /**
     * 物料描述
     */
    private String description;

    /**
     * 物料类别
     */
    private Integer category;

    /**
     * 计量单位
     */
    private String unit;

    /**
     * 库存数量
     */
    private BigDecimal stock;

    /**
     * 单位成本
     */
    private BigDecimal cost;

    /**
     * 单价
     */
    private BigDecimal price;

    /**
     * 单位工资
     */
    private BigDecimal salary;

    /**
     * 供应商
     */
    private String supplier;

    /**
     * 存储位置
     */
    private String location;

    private String images;

    private static final long serialVersionUID = 1L;
}
